package com.xu.rag.service.impl.model;

import com.xu.rag.common.annotation.ModelPoint;
import com.xu.rag.common.annotation.ModelType;
import com.xu.rag.pojo.result.ChunkResult;
import com.xu.rag.pojo.result.EmbeddingResult;
import com.xu.rag.service.LlmService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: xdl
 * @CreateTime: 2025-01-13 23:21
 * @Description: 智谱
 */
@Slf4j
@Service
@ModelType(modelCode = "ZHI_PU")
public class ZhipuAIServiceImpl implements LlmService {

    @Override
    public String functionCall(String message) throws Exception {
        return null;
    }

    @Override
    public String chat(String prompt) {
        return "";
    }

    @Override
//    @ModelPoint
    public double[] sentence(String sentence) {
        return new double[0];
    }

    @Override
    public List<EmbeddingResult> embedding(List<ChunkResult> chunkResults) {
        return null;
    }

    @Override
    public EmbeddingResult embedding(ChunkResult chunkResult) {
        return null;
    }
}
